package com.sg.service.biz.dataassets.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.dataassets.req.*;
import com.sg.dto.biz.dataassets.res.*;
import com.sg.dto.integration.dataassets.DeleteResourceFileComReqDto;
import com.sg.service.base.dataassets.MOmsAlbumService;
import com.sg.service.base.dataassets.MOmsResourceEviRecordService;
import com.sg.service.base.dataassets.MOmsResourceFileService;
import com.sg.service.biz.dataassets.IntelligentCommunicationService;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import com.wicket.okrcomponent.integration.DataSetSingleEntryService;
import com.wicket.okrcomponent.integration.InterfaceModeService;
import com.wicket.okrcomponent.integration.ResourceFileService;
import com.wicket.okrcomponent.integration.dto.*;
import com.sg.common.exception.Assert;
import com.wicket.okrdataassets.common.exception.BizException;
import com.wicket.okrframework.integration.BaseService;
import com.wicket.okrframework.integration.InductionRecordService;
import com.wicket.okrframework.integration.OrgService;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class ResourceFileServiceImpl
        implements com.wicket.okrdataassets.biz.service.ResourceFileService {

    @Resource
    private RedisUtil redisUtil;
    //@Resource
    //private MCustomFields3Service mCustomFields3Service;
    @Resource
    private NbResourceFile nbResourceFile;
    @Resource
    private MOmsResourceFileService mOmsResourceFileService;
    @Resource
    private MOmsResourceEviRecordService mOmsResourceEviRecordService;
    //@Resource
    //private undefinedService undefinedService;
    @Resource
    private ConfSchemeService confSchemeService;
    @Resource
    private MOmsAlbumService mOmsAlbumService;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private DataSetSingleEntryService fwCompDataSetSingleEntryClient;
    @Resource
    private ResourceFileService fwCompResourceFileClient;
    @Resource
    private BaseService baseService;
    @Resource
    private InductionRecordService inductionRecordService;
    @Resource
    private OrgService orgService;
    @Resource
    private IntelligentCommunicationService intelligentCommunicationService;

    /**
     * D8删除物理资源文件(公共)[10362]
     * gen by moon at 11/11/2024, 1:31:07 AM
     */
    @Trace(operationName = "D8删除物理资源文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeletePhysicalResourceFileComRespDto deletePhysicalResourceFileCom(DeletePhysicalResourceFileComReqDto reqDto) {


        //步骤0: M8删除物理资源文件（特殊方法） - deletePhysicalResourceFile
        //ModelCode: deleteResourcePhyFile
        DeletePhysicalResourceFileRespDto deleteResourcePhyFileRes = null;
        DeletePhysicalResourceFileReqDto deleteResourcePhyFileReq = new DeletePhysicalResourceFileReqDto();
        if (reqDto != null) {
            deleteResourcePhyFileReq.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:2027268_1
            deleteResourcePhyFileReq.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2027269_1
        }

        /*M8删除物理资源文件（特殊方法）[10361]   */
        Assert.isNull(deleteResourcePhyFileReq.getFileStorageRootPath(), "D8删除物理资源文件(公共)-M8删除物理资源文件（特殊方法）-文件存储根路径不能为空", false);
        Assert.isNull(deleteResourcePhyFileReq.getResourceFileRelaPath(), "D8删除物理资源文件(公共)-M8删除物理资源文件（特殊方法）-资源文件相对路径不能为空", false);
        deleteResourcePhyFileRes = nbResourceFile.deletePhysicalResourceFile(deleteResourcePhyFileReq);


        DeletePhysicalResourceFileComRespDto retData = new DeletePhysicalResourceFileComRespDto();


        return retData;
    }

    /**
     * D8新增资源文件[10316]
     * gen by moon at 11/11/2024, 1:59:53 AM
     */
    @Trace(operationName = "D8新增资源文件")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddResourceFileRespDto addResourceFile(AddResourceFileReqDto reqDto) {


        String string_1 = null;
//步骤0: 8-01-01新增资源文件 - addResourceFile
        String string = null;
        OmsResourceFile omsResourceFile = new OmsResourceFile();
        if (reqDto != null) {
            omsResourceFile.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2026438_1
            omsResourceFile.setResourceFileNumber(reqDto.getResourceFileNumber());//SimpleFieldAssign//sourceId:2026439_1
            omsResourceFile.setResourceFileSummary(reqDto.getResourceFileSummary());//SimpleFieldAssign//sourceId:2026440_1
            omsResourceFile.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2026441_1
            omsResourceFile.setResourceFileSize(reqDto.getResourceFileSize());//SimpleFieldAssign//sourceId:2026442_1
            omsResourceFile.setResourceFileExtension(reqDto.getResourceFileExtension());//SimpleFieldAssign//sourceId:2026443_1
            omsResourceFile.setResourceFileType(reqDto.getResourceFileType());//SimpleFieldAssign//sourceId:2026444_1
            omsResourceFile.setResourceFileDetailType(reqDto.getResourceFileDetailType());//SimpleFieldAssign//sourceId:2026445_1
            omsResourceFile.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2026446_1
            omsResourceFile.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2026447_1
            omsResourceFile.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2026448_1
            omsResourceFile.setIsEvi(reqDto.getIsEvi());//SimpleFieldAssign//sourceId:2026449_1
            omsResourceFile.setIsUserUpload(reqDto.getIsUserUpload());
        }

        /*8-01-01新增资源文件[10301]   */
        Assert.isNull(omsResourceFile.getResourceFileName(), "D8新增资源文件-8-01-01新增资源文件-资源文件名称不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileNumber(), "D8新增资源文件-8-01-01新增资源文件-资源文件编号不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileRelaPath(), "D8新增资源文件-8-01-01新增资源文件-资源文件相对路径不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileSize(), "D8新增资源文件-8-01-01新增资源文件-资源文件大小不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileExtension(), "D8新增资源文件-8-01-01新增资源文件-资源文件后缀不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileType(), "D8新增资源文件-8-01-01新增资源文件-资源文件类型不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileDetailType(), "D8新增资源文件-8-01-01新增资源文件-资源文件明细类型不能为空", false);
        Assert.isNull(omsResourceFile.getResourceCopyRightType(), "D8新增资源文件-8-01-01新增资源文件-资源文件版权归属类型不能为空", false);
        Assert.isNull(omsResourceFile.getResourceCopyRightHolderId(), "D8新增资源文件-8-01-01新增资源文件-资源文件版权归属对象ID不能为空", false);
        Assert.isNull(omsResourceFile.getIsEvi(), "D8新增资源文件-8-01-01新增资源文件-是否有存证不能为空", false);
        string = mOmsResourceFileService.addResourceFile(omsResourceFile)/*vcase invoke 本地 method 方法调用;*/;


        string_1 = string;

        AddResourceFileRespDto retData = new AddResourceFileRespDto();
        if (string_1 != null) {
            retData.setResourceFileId(string_1);//SimpleFieldAssign//sourceId:2026463_1
        }


        return retData;
    }

    /**
     * D8修改资源文件(公共)[10317]
     * gen by moon at 5/27/2025, 1:20:47 PM
     */
    @Trace(operationName = "D8修改资源文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateResourceFileComRespDto updateResourceFileCom(UpdateResourceFileComReqDto reqDto) {


        //步骤0: 8-01-01修改资源文件 - updateResourceFile
        boolean bOOLEAN;
        OmsResourceFile omsResourceFile = new OmsResourceFile();
        if (reqDto != null) {
            omsResourceFile.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2027202_1
            omsResourceFile.setResourceFileSummary(reqDto.getResourceFileSummary());//SimpleFieldAssign//sourceId:2026464_1
            omsResourceFile.setEviRecordId(reqDto.getEviRecordId());//SimpleFieldAssign//sourceId:2026465_1
            omsResourceFile.setIsEvi(reqDto.getIsEvi());//SimpleFieldAssign//sourceId:2026466_1
            omsResourceFile.setIsValid(reqDto.getIsValid());//SimpleFieldAssign//sourceId:2026467_1
        }

        /*8-01-01修改资源文件[10305]   */
        Assert.isNull(omsResourceFile.getResourceFileId(), "D8修改资源文件(公共)-8-01-01修改资源文件-资源文件ID不能为空", false);
        bOOLEAN = mOmsResourceFileService.updateResourceFile(omsResourceFile)/*vcase invoke 本地 method 方法调用;*/;


        UpdateResourceFileComRespDto retData = new UpdateResourceFileComRespDto();


        return retData;
    }

    /**
     * D8新增存证记录(公共)[10318]
     * gen by moon at 12/9/2024, 12:17:58 AM
     */
    @Trace(operationName = "D8新增存证记录(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddEviRecordComRespDto addEviRecordCom(AddEviRecordComReqDto reqDto) {


        String string_1 = null;
//步骤0: 8-01-02-新增存证记录 - addEviRecord
        String string = null;
        OmsResourceEviRecord omsResourceEviRecord = new OmsResourceEviRecord();
        if (reqDto != null) {
            omsResourceEviRecord.setBlockUniCode(reqDto.getBlockUniCode());//SimpleFieldAssign//sourceId:2026468_1
            omsResourceEviRecord.setChainEviId(reqDto.getChainEviId());//SimpleFieldAssign//sourceId:2034812_1
            omsResourceEviRecord.setChainAddress(reqDto.getChainAddress());//SimpleFieldAssign//sourceId:2034972_1
            omsResourceEviRecord.setHashCal(reqDto.getHashCal());//SimpleFieldAssign//sourceId:2034973_1
            omsResourceEviRecord.setHashCode(reqDto.getHashCode());//SimpleFieldAssign//sourceId:2026469_1
            omsResourceEviRecord.setResourceFileNumber(reqDto.getResourceFileNumber());//SimpleFieldAssign//sourceId:2026471_1
            omsResourceEviRecord.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2026470_1
            omsResourceEviRecord.setPriAuthorId(reqDto.getPriAuthorId());//SimpleFieldAssign//sourceId:2034813_1
            omsResourceEviRecord.setPriAuthorName(reqDto.getPriAuthorName());//SimpleFieldAssign//sourceId:2034814_1
            omsResourceEviRecord.setCopyRightType(reqDto.getCopyRightType());//SimpleFieldAssign//sourceId:2026472_1
            omsResourceEviRecord.setCopyRightHolderId(reqDto.getCopyRightHolderId());//SimpleFieldAssign//sourceId:2026473_1
            omsResourceEviRecord.setCopyRightHolderName(reqDto.getCopyRightHolderName());//SimpleFieldAssign//sourceId:2026474_1
            omsResourceEviRecord.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2026475_1
            omsResourceEviRecord.setAbbreviation(reqDto.getAbbreviation());//SimpleFieldAssign//sourceId:2026477_1
        }

        /*8-01-02-新增存证记录[10303]   */
        Assert.isNull(omsResourceEviRecord.getBlockUniCode(), "D8新增存证记录(公共)-8-01-02-新增存证记录-区块链存证唯一标识（存证编号）不能为空", false);
        Assert.isNull(omsResourceEviRecord.getChainEviId(), "D8新增存证记录(公共)-8-01-02-新增存证记录-区块链存证ID不能为空", false);
        Assert.isNull(omsResourceEviRecord.getHashCode(), "D8新增存证记录(公共)-8-01-02-新增存证记录-文件存证唯一标识不能为空", false);
        Assert.isNull(omsResourceEviRecord.getResourceFileNumber(), "D8新增存证记录(公共)-8-01-02-新增存证记录-资源文件编号不能为空", false);
        Assert.isNull(omsResourceEviRecord.getResourceFileName(), "D8新增存证记录(公共)-8-01-02-新增存证记录-冗余资源文件名称不能为空", false);
        Assert.isNull(omsResourceEviRecord.getCopyRightType(), "D8新增存证记录(公共)-8-01-02-新增存证记录-版权归属类型不能为空", false);
        Assert.isNull(omsResourceEviRecord.getCopyRightHolderId(), "D8新增存证记录(公共)-8-01-02-新增存证记录-版权归属对象ID不能为空", false);
        Assert.isNull(omsResourceEviRecord.getCopyRightHolderName(), "D8新增存证记录(公共)-8-01-02-新增存证记录-版权归属对象名称不能为空", false);
        Assert.isNull(omsResourceEviRecord.getAbbreviation(), "D8新增存证记录(公共)-8-01-02-新增存证记录-冗余空间简称不能为空", false);
        string = mOmsResourceEviRecordService.addEviRecord(omsResourceEviRecord)/*vcase invoke 本地 method 方法调用;*/;


        string_1 = string;

        AddEviRecordComRespDto retData = new AddEviRecordComRespDto();
        if (string_1 != null) {
            retData.setEviRecordId(string_1);//SimpleFieldAssign//sourceId:2026491_1
        }


        return retData;
    }

    /**
     * D8删除资源文件(公共)[10319]
     * gen by moon at 11/11/2024, 1:59:59 AM
     */
    @Trace(operationName = "D8删除资源文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteResourceFileComRespDto deleteResourceFileCom(DeleteResourceFileComReqDto reqDto) {


        //步骤0: 8-01-01删除资源文件 - deleteResourceFile
        boolean bOOLEAN;
        String string = new String();
        if (reqDto != null) {
            string = reqDto.getResourceFileId();
            ;//SimpleFieldAssign//sourceId:2026492_1
        }

        /*8-01-01删除资源文件[10306]   */
        Assert.isNull(string, "D8删除资源文件(公共)-8-01-01删除资源文件-资源文件ID不能为空", false);
        bOOLEAN = mOmsResourceFileService.deleteResourceFile(string)/*vcase invoke 本地 method 方法调用;*/;


        DeleteResourceFileComRespDto retData = new DeleteResourceFileComRespDto();


        return retData;
    }

    /**
     * D8查询存证记录详情(公共)[10320]
     * gen by moon at 12/12/2024, 4:56:42 PM
     */
    @Trace(operationName = "D8查询存证记录详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryEviRecordDetailComRespDto queryEviRecordDetailCom(QueryEviRecordDetailComReqDto reqDto) {


        OmsResourceEviRecord omsResourceEviRecord_1 = null;
//步骤0: 8-01-02查询存证记录详情 - queryEviRecordDetail
        OmsResourceEviRecord omsResourceEviRecord = null;
        QueryEviRecordDetailReq queryEviRecordDetailReq = new QueryEviRecordDetailReq();
        if (reqDto != null) {
            queryEviRecordDetailReq.setEviRecordId(reqDto.getEviRecordId());//SimpleFieldAssign//sourceId:2026494_1
        }

        /*8-01-02查询存证记录详情[10304]   */
        Assert.isNull(queryEviRecordDetailReq.getEviRecordId(), "D8查询存证记录详情(公共)-8-01-02查询存证记录详情-存证记录ID不能为空", false);
        omsResourceEviRecord = mOmsResourceEviRecordService.queryEviRecordDetail(queryEviRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsResourceEviRecord_1 = omsResourceEviRecord;

        QueryEviRecordDetailComRespDto retData = new QueryEviRecordDetailComRespDto();
        if (omsResourceEviRecord_1 != null) {
            retData.setEviRecordId(omsResourceEviRecord_1.getEviRecordId());//SimpleFieldAssign//sourceId:2026506_1
            retData.setChainEviId(omsResourceEviRecord_1.getChainEviId());//SimpleFieldAssign//sourceId:2034839_1
            retData.setBlockUniCode(omsResourceEviRecord_1.getBlockUniCode());//SimpleFieldAssign//sourceId:2026507_1
            retData.setHashCode(omsResourceEviRecord_1.getHashCode());//SimpleFieldAssign//sourceId:2034840_1
            retData.setChainAddress(omsResourceEviRecord_1.getChainAddress());//SimpleFieldAssign//sourceId:2036669_1
            retData.setHashCal(omsResourceEviRecord_1.getHashCal());//SimpleFieldAssign//sourceId:2036670_1
            retData.setResourceFileName(omsResourceEviRecord_1.getResourceFileName());//SimpleFieldAssign//sourceId:2026508_1
            retData.setResourceFileNumber(omsResourceEviRecord_1.getResourceFileNumber());//SimpleFieldAssign//sourceId:2026509_1
            retData.setPriAuthorName(omsResourceEviRecord_1.getPriAuthorName());//SimpleFieldAssign//sourceId:2026510_1
            retData.setCopyRightType(omsResourceEviRecord_1.getCopyRightType());//SimpleFieldAssign//sourceId:2026511_1
            retData.setCopyRightHolderName(omsResourceEviRecord_1.getCopyRightHolderName());//SimpleFieldAssign//sourceId:2026512_1
            retData.setAbbreviation(omsResourceEviRecord_1.getAbbreviation());//SimpleFieldAssign//sourceId:2026513_1
            retData.setCreateInductionId(omsResourceEviRecord_1.getCreateInductionId());//SimpleFieldAssign//sourceId:2026514_1
            retData.setCreateTime(omsResourceEviRecord_1.getCreateTime());//SimpleFieldAssign//sourceId:2026515_1
        }


        return retData;
    }

    /**
     * D8查询资源文件详情(公共)[10321]
     * gen by moon at 5/26/2025, 9:35:54 PM
     */
    @Trace(operationName = "D8查询资源文件详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryResourceFileDetailComRespDto queryResourceFileDetailCom(QueryResourceFileDetailComReqDto reqDto) {


        OmsResourceFile omsResourceFile_1 = null;
//步骤0: 8-01-01查询资源文件详情 - queryResourceFileDetail
        OmsResourceFile omsResourceFile = null;
        QueryResourceFileDetailReq queryResourceFileDetailReq = new QueryResourceFileDetailReq();
        if (reqDto != null) {
            queryResourceFileDetailReq.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2026549_1
            queryResourceFileDetailReq.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2027419_1
            queryResourceFileDetailReq.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2027420_1
        }

        /*8-01-01查询资源文件详情[10307]   */
        Assert.isNull(queryResourceFileDetailReq.getResourceFileId(), "D8查询资源文件详情(公共)-8-01-01查询资源文件详情-资源文件ID不能为空", false);
        omsResourceFile = mOmsResourceFileService.queryResourceFileDetail(queryResourceFileDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsResourceFile_1 = omsResourceFile;

        QueryResourceFileDetailComRespDto retData = new QueryResourceFileDetailComRespDto();
        if (omsResourceFile_1 != null) {
            retData.setResourceFileId(omsResourceFile_1.getResourceFileId());//SimpleFieldAssign//sourceId:2027430_1
            retData.setHashCode(omsResourceFile_1.getHashCode());//SimpleFieldAssign//sourceId:2034666_1
            retData.setResourceFileName(omsResourceFile_1.getResourceFileName());//SimpleFieldAssign//sourceId:2028363_1
            retData.setResourceFileNumber(omsResourceFile_1.getResourceFileNumber());//SimpleFieldAssign//sourceId:2028364_1
            retData.setResourceFileSummary(omsResourceFile_1.getResourceFileSummary());//SimpleFieldAssign//sourceId:2034667_1
            retData.setResourceFileRelaPath(omsResourceFile_1.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2027492_1
            retData.setResourceFileSize(omsResourceFile_1.getResourceFileSize());//SimpleFieldAssign//sourceId:2028365_1
            retData.setResourceFileExtension(omsResourceFile_1.getResourceFileExtension());//SimpleFieldAssign//sourceId:2028366_1
            retData.setResourceFileType(omsResourceFile_1.getResourceFileType());//SimpleFieldAssign//sourceId:2028367_1
            retData.setResourceFileDetailType(omsResourceFile_1.getResourceFileDetailType());//SimpleFieldAssign//sourceId:2028368_1
            retData.setResourceCopyRightType(omsResourceFile_1.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2028369_1
            retData.setResourceCopyRightHolderId(omsResourceFile_1.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2028370_1
            retData.setCopyRightOriginalRoleMemberId(omsResourceFile_1.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2028371_1
            retData.setEviRecordId(omsResourceFile_1.getEviRecordId());//SimpleFieldAssign//sourceId:2034865_1
            retData.setIsEvi(omsResourceFile_1.getIsEvi());//SimpleFieldAssign//sourceId:2034866_1
            retData.setIsValid(omsResourceFile_1.getIsValid());//SimpleFieldAssign//sourceId:2027429_1
            retData.setSpaceId(omsResourceFile_1.getSpaceId());//SimpleFieldAssign//sourceId:2036679_1
            retData.setResourceFileCataObjectId(omsResourceFile_1.getResourceFileCataObjectId());//SimpleFieldAssign//sourceId:2047709_1
            retData.setCreateTime(omsResourceFile_1.getCreateTime());//SimpleFieldAssign//sourceId:2047710_1
            retData.setOperateTime(omsResourceFile_1.getOperateTime());//SimpleFieldAssign//sourceId:2047711_1
        }


        return retData;
    }

    /**
     * D8查询资源文件列表(公共)[10393]
     * gen by moon at 5/26/2025, 9:36:17 PM
     */
    @Trace(operationName = "D8查询资源文件列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryResourceFileListComRespDto queryResourceFileListCom(QueryResourceFileListComReqDto reqDto) {


        List<OmsResourceFile> listOmsResourceFile_1 = new ArrayList<>();
//步骤0: 8-01-01查询资源文件列表 - queryResourceFileList
        List<OmsResourceFile> listOmsResourceFile = new ArrayList<>();
        QueryResourceFileListReq queryResourceFileListReq = new QueryResourceFileListReq();
        if (reqDto != null) {
            queryResourceFileListReq.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2028843_1
            queryResourceFileListReq.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2028861_1
            queryResourceFileListReq.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2028862_1
            queryResourceFileListReq.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2028863_1
            queryResourceFileListReq.setIsValid(reqDto.getIsValid());//SimpleFieldAssign//sourceId:2047555_1
        }

        /*8-01-01查询资源文件列表[10392]   */
        Assert.isNull(queryResourceFileListReq.getResourceCopyRightType(), "D8查询资源文件列表(公共)-8-01-01查询资源文件列表-资源文件版权归属类型不能为空", false);
        Assert.isNull(queryResourceFileListReq.getIsValid(), "D8查询资源文件列表(公共)-8-01-01查询资源文件列表-是否作废不能为空", false);
        listOmsResourceFile = mOmsResourceFileService.queryResourceFileList(queryResourceFileListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsResourceFile_1 = listOmsResourceFile;

        QueryResourceFileListComRespDto retData = new QueryResourceFileListComRespDto();
        retData.setResourceFileList(listOmsResourceFile_1.stream().map(item -> BeanUtil.toBean(item, ResourceFileDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2028846_1


        return retData;
    }

    /**
     * D8新增资源文件(公共)[10316]
     * gen by moon at 5/24/2025, 2:31:36 PM
     */
    @Trace(operationName = "D8新增资源文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddResourceFileComRespDto addResourceFileCom(AddResourceFileComReqDto reqDto) {


        String string_1 = null;
//步骤0: 8-01-01新增资源文件 - addResourceFile
        String string = null;
        OmsResourceFile omsResourceFile = new OmsResourceFile();
        if (reqDto != null) {
            omsResourceFile.setHashCode(reqDto.getHashCode());//SimpleFieldAssign//sourceId:2036911_1
            omsResourceFile.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2026438_1
            omsResourceFile.setResourceFileSummary(reqDto.getResourceFileSummary());//SimpleFieldAssign//sourceId:2026440_1
            omsResourceFile.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2026441_1
            omsResourceFile.setResourceFileSize(reqDto.getResourceFileSize());//SimpleFieldAssign//sourceId:2026442_1
            omsResourceFile.setResourceFileExtension(reqDto.getResourceFileExtension());//SimpleFieldAssign//sourceId:2026443_1
            omsResourceFile.setResourceFileType(reqDto.getResourceFileType());//SimpleFieldAssign//sourceId:2026444_1
            omsResourceFile.setResourceFileDetailType(reqDto.getResourceFileDetailType());//SimpleFieldAssign//sourceId:2026445_1
            omsResourceFile.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:2028835_1
            omsResourceFile.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2026446_1
            omsResourceFile.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2026447_1
            omsResourceFile.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2026448_1
            omsResourceFile.setIsEvi(reqDto.getIsEvi());//SimpleFieldAssign//sourceId:2026449_1
        }

        /*8-01-01新增资源文件[10301]   */
        Assert.isNull(omsResourceFile.getResourceFileName(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件名称不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileRelaPath(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件相对路径不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileSize(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件大小不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileExtension(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件后缀不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileType(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件类型不能为空", false);
        Assert.isNull(omsResourceFile.getResourceFileDetailType(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件明细类型不能为空", false);
        Assert.isNull(omsResourceFile.getIsUserUpload(), "D8新增资源文件(公共)-8-01-01新增资源文件-是否来自个人网盘文件不能为空", false);
        Assert.isNull(omsResourceFile.getResourceCopyRightType(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件版权归属类型不能为空", false);
        Assert.isNull(omsResourceFile.getResourceCopyRightHolderId(), "D8新增资源文件(公共)-8-01-01新增资源文件-资源文件版权归属对象ID不能为空", false);
        Assert.isNull(omsResourceFile.getIsEvi(), "D8新增资源文件(公共)-8-01-01新增资源文件-是否有存证不能为空", false);
        string = mOmsResourceFileService.addResourceFile(omsResourceFile)/*vcase invoke 本地 method 方法调用;*/;


        string_1 = string;

        AddResourceFileComRespDto retData = new AddResourceFileComRespDto();
        if (string_1 != null) {
            retData.setResourceFileId(string_1);//SimpleFieldAssign//sourceId:2026463_1
        }


        return retData;
    }

    /**
     * D8循环增资源文件[10395]
     * gen by moon at 12/17/2024, 7:39:26 PM
     */
    @Trace(operationName = "D8循环增资源文件")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public LoopAddResourceFileRespDto loopAddResourceFile(LoopAddResourceFileReqDto reqDto) {


        //步骤0: M8执行资源文件【循环开始】 - implementResourceFile
        //ModelCode: circulationCollections
        for (ResourceFileDto circulationCollectionsRes : reqDto.getResourceFileList()) {


//步骤1: D2-3查询文档类型配置答案详情(公共) - queryDocumentTypeAnswerDetailCom
            QueryDocumentTypeAnswerDetailComRespDto queryDocumentTypeAnswerDetailComRespDto = null;
            QueryDocumentTypeAnswerDetailComReqDto queryDocumentTypeAnswerDetailComReqDto = new QueryDocumentTypeAnswerDetailComReqDto();
            queryDocumentTypeAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2029000_1
            queryDocumentTypeAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2029001_1
            queryDocumentTypeAnswerDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:2029002_1
            if (circulationCollectionsRes != null) {
                queryDocumentTypeAnswerDetailComReqDto.setConfItemCode(circulationCollectionsRes.getResourceFileExtension());//SimpleFieldAssign//sourceId:2028995_1
            }

            /*D2-3查询文档类型配置答案详情(公共)[2458]   */
            Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getResultAspObjId(), "D8循环增资源文件-D2-3查询文档类型配置答案详情(公共)-开通对象ID不能为空", false);
            Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getConfItemCode(), "D8循环增资源文件-D2-3查询文档类型配置答案详情(公共)-配置项标识不能为空", false);
            Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getResultAspObjType(), "D8循环增资源文件-D2-3查询文档类型配置答案详情(公共)-开通对象类型编码不能为空", false);
            Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getSubjectLifeCycle(), "D8循环增资源文件-D2-3查询文档类型配置答案详情(公共)-主体生命周期不能为空", false);
            queryDocumentTypeAnswerDetailComRespDto = confSchemeService.queryDocumentTypeAnswerDetailCom(queryDocumentTypeAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤2: D8新增资源文件(公共) - addResourceFileCom
            AddResourceFileComRespDto addResourceFileComRespDto = null;
            if (queryDocumentTypeAnswerDetailComRespDto != null) {
                AddResourceFileComReqDto addResourceFileComReqDto = new AddResourceFileComReqDto();
                if (circulationCollectionsRes != null) {
                    addResourceFileComReqDto.setHashCode(circulationCollectionsRes.getHashCode());//SimpleFieldAssign//sourceId:2036913_1
                    addResourceFileComReqDto.setResourceFileName(circulationCollectionsRes.getResourceFileName());//SimpleFieldAssign//sourceId:2028982_1
                    addResourceFileComReqDto.setResourceFileRelaPath(circulationCollectionsRes.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2028984_1
                    addResourceFileComReqDto.setResourceFileSize(circulationCollectionsRes.getResourceFileSize());//SimpleFieldAssign//sourceId:2028985_1
                    addResourceFileComReqDto.setResourceFileExtension(circulationCollectionsRes.getResourceFileExtension());//SimpleFieldAssign//sourceId:2028986_1
                    addResourceFileComReqDto.setResourceCopyRightType(circulationCollectionsRes.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2028989_1
                    addResourceFileComReqDto.setResourceCopyRightHolderId(circulationCollectionsRes.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2028990_1
                    addResourceFileComReqDto.setCopyRightOriginalRoleMemberId(circulationCollectionsRes.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2028991_1
                    addResourceFileComReqDto.setIsUserUpload(circulationCollectionsRes.getIsUserUpload());//SimpleFieldAssign//sourceId:2028994_1
                    addResourceFileComReqDto.setIsEvi(circulationCollectionsRes.getIsEvi());//SimpleFieldAssign//sourceId:2028992_1
                }
                if (queryDocumentTypeAnswerDetailComRespDto != null) {
                    addResourceFileComReqDto.setResourceFileType(queryDocumentTypeAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:2028987_1
                    addResourceFileComReqDto.setResourceFileDetailType(queryDocumentTypeAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:2028988_1
                }

                /*D8新增资源文件(公共)[10316]   */
                Assert.isNull(addResourceFileComReqDto.getResourceFileName(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件名称不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceFileRelaPath(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件相对路径不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceFileSize(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件大小不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceFileExtension(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件后缀不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceFileType(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件类型不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceFileDetailType(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件明细类型不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceCopyRightType(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件版权归属类型不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getResourceCopyRightHolderId(), "D8循环增资源文件-D8新增资源文件(公共)-资源文件版权归属对象ID不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getIsUserUpload(), "D8循环增资源文件-D8新增资源文件(公共)-是否来自个人网盘文件不能为空", false);
                Assert.isNull(addResourceFileComReqDto.getIsEvi(), "D8循环增资源文件-D8新增资源文件(公共)-是否有存证不能为空", false);
                addResourceFileComRespDto = addResourceFileCom(addResourceFileComReqDto)/*vcase invoke 同服务,同domain*/;


            }

//步骤3: D8生成智能简介(公共) - generateSmartIntroCom
            GenerateSmartIntroComRespDto generateSmartIntroComRespDto = null;
            if (addResourceFileComRespDto != null) {
                GenerateSmartIntroComReqDto generateSmartIntroComReqDto = new GenerateSmartIntroComReqDto();
                if (addResourceFileComRespDto != null) {
                    generateSmartIntroComReqDto.setResourceFileId(addResourceFileComRespDto.getResourceFileId());//SimpleFieldAssign//sourceId:2037081_1
                }
                if (circulationCollectionsRes != null) {
                    generateSmartIntroComReqDto.setResourceFileRelaPath(circulationCollectionsRes.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2037082_1
                }

                /*D8生成智能简介(公共)[10453]   */
                Assert.isNull(generateSmartIntroComReqDto.getResourceFileId(), "D8循环增资源文件-D8生成智能简介(公共)-资源文件ID不能为空", false);
                Assert.isNull(generateSmartIntroComReqDto.getResourceFileRelaPath(), "D8循环增资源文件-D8生成智能简介(公共)-资源文件相对路径不能为空", false);
                generateSmartIntroComRespDto = generateSmartIntroCom(generateSmartIntroComReqDto)/*vcase invoke 同服务,同domain*/;


            }

//步骤4: M8执行【循环结束】 - implementLoopStopResource
            //ModelCode: circulationEnd
        }


        LoopAddResourceFileRespDto retData = new LoopAddResourceFileRespDto();


        return retData;
    }

    /**
     * D8执行资源文件上区块链(公共)[10434]
     * gen by moon at 12/16/2024, 7:38:34 PM
     */
    @Trace(operationName = "D8执行资源文件上区块链(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementEviFilesChainsComRespDto implementEviFilesChainsCom(ImplementEviFilesChainsComReqDto reqDto) {


        ImplementEviFilesChainComRespDto implementEviFilesChainComRespDto_1 = null;
//步骤0: D8查询资源文件详情(公共) - queryResourceFileDetailCom
        QueryResourceFileDetailComRespDto queryResourceFileDetailComRespDto = null;
        QueryResourceFileDetailComReqDto queryResourceFileDetailComReqDto = new QueryResourceFileDetailComReqDto();
        if (reqDto != null) {
            queryResourceFileDetailComReqDto.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2034504_1
        }

        /*D8查询资源文件详情(公共)[10321]   */
        Assert.isNull(queryResourceFileDetailComReqDto.getResourceFileId(), "D8执行资源文件上区块链(公共)-D8查询资源文件详情(公共)-资源文件ID不能为空", false);
        queryResourceFileDetailComRespDto = queryResourceFileDetailCom(queryResourceFileDetailComReqDto)/*vcase invoke 同服务,同domain*/;


//步骤1: D1-2查空间详情(公共) - querySpaceDetailCom
        QuerySpaceDetailComRespDto querySpaceDetailComRespDto = null;
        QuerySpaceDetailComReqDto querySpaceDetailComReqDto = new QuerySpaceDetailComReqDto();
        querySpaceDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2036681_1

        /*D1-2查空间详情(公共)[402]   */
        Assert.isNull(querySpaceDetailComReqDto.getSpaceId(), "D8执行资源文件上区块链(公共)-D1-2查空间详情(公共)-空间ID不能为空", false);
        querySpaceDetailComRespDto = baseService.querySpaceDetailCom(querySpaceDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤2: D8分析资源文件归属对象名称(公共) - analysisResourceFileObjectNameCom
        AnalysisResourceFileObjectNameComRespDto analysisResourceFileObjectNameComRespDto = null;
        if (queryResourceFileDetailComRespDto != null) {
            AnalysisResourceFileObjectNameComReqDto analysisResourceFileObjectNameComReqDto = new AnalysisResourceFileObjectNameComReqDto();
            if (queryResourceFileDetailComRespDto != null) {
                analysisResourceFileObjectNameComReqDto.setResourceCopyRightType(queryResourceFileDetailComRespDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2036799_1
                analysisResourceFileObjectNameComReqDto.setResourceCopyRightHolderId(queryResourceFileDetailComRespDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2036800_1
            }

            /*D8分析资源文件归属对象名称(公共)[10451]   */
            Assert.isNull(analysisResourceFileObjectNameComReqDto.getResourceCopyRightType(), "D8执行资源文件上区块链(公共)-D8分析资源文件归属对象名称(公共)-资源文件版权归属类型不能为空", false);
            Assert.isNull(analysisResourceFileObjectNameComReqDto.getResourceCopyRightHolderId(), "D8执行资源文件上区块链(公共)-D8分析资源文件归属对象名称(公共)-资源文件版权归属对象ID不能为空", false);
            analysisResourceFileObjectNameComRespDto = analysisResourceFileObjectNameCom(analysisResourceFileObjectNameComReqDto)/*vcase invoke 同服务,同domain*/;


        }

//步骤3: D2执行多字段转json字符串(公共) - implementMutFeldToJsonStringCom
        ImplementMutFeldToJsonStringComRespDto implementMutFeldToJsonStringComRespDto = null;
        if (queryResourceFileDetailComRespDto != null) {
            ImplementMutFeldToJsonStringComReqDto implementMutFeldToJsonStringComReqDto = new ImplementMutFeldToJsonStringComReqDto();
            implementMutFeldToJsonStringComReqDto.setCustomField1("hashCode");//CUSTOM_CONVENTION//sourceId:2034732_1
            implementMutFeldToJsonStringComReqDto.setCustomField2("resourceFileName");//CUSTOM_CONVENTION//sourceId:2034734_1
            implementMutFeldToJsonStringComReqDto.setCustomField3("resourceFileNumber");//CUSTOM_CONVENTION//sourceId:2034736_1
            implementMutFeldToJsonStringComReqDto.setCustomField4("priAuthorId");//CUSTOM_CONVENTION//sourceId:2034739_1
            implementMutFeldToJsonStringComReqDto.setCustomField5("priAuthorName");//CUSTOM_CONVENTION//sourceId:2034741_1
            implementMutFeldToJsonStringComReqDto.setCustomField6("copyRightType");//CUSTOM_CONVENTION//sourceId:2034743_1
            implementMutFeldToJsonStringComReqDto.setCustomField7("copyRightHolderId");//CUSTOM_CONVENTION//sourceId:2034745_1
            implementMutFeldToJsonStringComReqDto.setCustomField8("copyRightHolderName");//CUSTOM_CONVENTION//sourceId:2034747_1
            implementMutFeldToJsonStringComReqDto.setCustomField9("copyRightOriginalRoleMemberId");//CUSTOM_CONVENTION//sourceId:2034749_1
            implementMutFeldToJsonStringComReqDto.setCustomField10("abbreviation");//CUSTOM_CONVENTION//sourceId:2034751_1
            if (queryResourceFileDetailComRespDto != null) {
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue1(queryResourceFileDetailComRespDto.getHashCode());//SimpleFieldAssign//sourceId:2034733_1
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue2(queryResourceFileDetailComRespDto.getResourceFileName());//SimpleFieldAssign//sourceId:2034735_1
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue3(queryResourceFileDetailComRespDto.getResourceFileNumber());//SimpleFieldAssign//sourceId:2034737_1
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue6(queryResourceFileDetailComRespDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2034744_1
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue7(queryResourceFileDetailComRespDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2034746_1
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue9(queryResourceFileDetailComRespDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2034750_1
            }
            if (analysisResourceFileObjectNameComRespDto != null) {
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue8(analysisResourceFileObjectNameComRespDto.getCopyRightHolderName());//SimpleFieldAssign//sourceId:2034748_1
            }
            if (querySpaceDetailComRespDto != null) {
                implementMutFeldToJsonStringComReqDto.setCustomFieldValue10(querySpaceDetailComRespDto.getAbbreviation());//SimpleFieldAssign//sourceId:2034752_1
            }

            /*D2执行多字段转json字符串(公共)[10436]   */
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField1(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段1不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField2(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段2不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField3(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段3不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField4(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段4不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField5(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段5不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField6(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段6不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField7(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段7不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField8(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段8不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField9(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段9不能为空", false);
            Assert.isNull(implementMutFeldToJsonStringComReqDto.getCustomField10(), "D8执行资源文件上区块链(公共)-D2执行多字段转json字符串(公共)-自定义字段10不能为空", false);
            implementMutFeldToJsonStringComRespDto = interfaceModeService.implementMutFeldToJsonStringCom(implementMutFeldToJsonStringComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        }

//步骤4: D2执行单条多字段转数据集(公共) - implementSingleMultipleFieldSetDataEntryCom
        ImplementSingleMultipleFieldSetDataEntryComRespDto implementSingleMultipleFieldSetDataEntryComRespDto = null;
        if (queryResourceFileDetailComRespDto != null) {
            ImplementSingleMultipleFieldSetDataEntryComReqDto implementSingleMultipleFieldSetDataEntryComReqDto = new ImplementSingleMultipleFieldSetDataEntryComReqDto();
            if (queryResourceFileDetailComRespDto != null) {
                implementSingleMultipleFieldSetDataEntryComReqDto.setCustomField1(queryResourceFileDetailComRespDto.getResourceFileName());//SimpleFieldAssign//sourceId:2034654_1
                implementSingleMultipleFieldSetDataEntryComReqDto.setCustomField2(queryResourceFileDetailComRespDto.getResourceFileNumber());//SimpleFieldAssign//sourceId:2034655_1
            }
            if (implementMutFeldToJsonStringComRespDto != null) {
                implementSingleMultipleFieldSetDataEntryComReqDto.setCustomField3(implementMutFeldToJsonStringComRespDto.getCustomText());//SimpleFieldAssign//sourceId:2034656_1
            }

            /*D2执行单条多字段转数据集(公共)[9762]   */
            Assert.isNull(implementSingleMultipleFieldSetDataEntryComReqDto.getCustomField1(), "D8执行资源文件上区块链(公共)-D2执行单条多字段转数据集(公共)-自定义字段1不能为空", false);
            Assert.isNull(implementSingleMultipleFieldSetDataEntryComReqDto.getCustomField2(), "D8执行资源文件上区块链(公共)-D2执行单条多字段转数据集(公共)-自定义字段2不能为空", false);
            Assert.isNull(implementSingleMultipleFieldSetDataEntryComReqDto.getCustomField3(), "D8执行资源文件上区块链(公共)-D2执行单条多字段转数据集(公共)-自定义字段3不能为空", false);
            implementSingleMultipleFieldSetDataEntryComRespDto = fwCompDataSetSingleEntryClient.implementSingleMultipleFieldSetDataEntryCom(implementSingleMultipleFieldSetDataEntryComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        }

//步骤5: D2执行资源文件上区块链(公共) - implementEviFilesChainCom
        ImplementEviFilesChainComRespDto implementEviFilesChainComRespDto = null;
        if (implementSingleMultipleFieldSetDataEntryComRespDto != null) {
            ImplementEviFilesChainComReqDto implementEviFilesChainComReqDto = new ImplementEviFilesChainComReqDto();
            if (implementSingleMultipleFieldSetDataEntryComRespDto != null && implementSingleMultipleFieldSetDataEntryComRespDto.getComDatasList() != null && !CollectionUtil.isEmpty(implementSingleMultipleFieldSetDataEntryComRespDto.getComDatasList())) {
                implementEviFilesChainComReqDto.setItemList(//objList-to-objLists
                        implementSingleMultipleFieldSetDataEntryComRespDto.getComDatasList().stream().map(item -> {
                            ItemDto elm = new ItemDto();
                            if (item != null) {
                                elm.setChName(item.getCustomField1());//SimpleFieldAssign//sourceId:429393_2
                                elm.setEnName(item.getCustomField2());//SimpleFieldAssign//sourceId:429394_2
                                elm.setEnValue(item.getCustomField3());//SimpleFieldAssign//sourceId:429395_2
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:2034653_1
            }

            /*D2执行资源文件上区块链(公共)[10433]   */

            implementEviFilesChainComRespDto = fwCompResourceFileClient.implementEviFilesChainCom(implementEviFilesChainComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            implementEviFilesChainComRespDto_1 = implementEviFilesChainComRespDto;
        }

//步骤6: D8新增存证记录(公共) - addEviRecordCom
        AddEviRecordComRespDto addEviRecordComRespDto = null;
        if (implementEviFilesChainComRespDto != null) {
            AddEviRecordComReqDto addEviRecordComReqDto = new AddEviRecordComReqDto();
            if (implementEviFilesChainComRespDto != null) {
                addEviRecordComReqDto.setBlockUniCode(implementEviFilesChainComRespDto.getDataHash());//SimpleFieldAssign//sourceId:2034799_1
                addEviRecordComReqDto.setChainEviId(implementEviFilesChainComRespDto.getDataId() != null ? String.valueOf(implementEviFilesChainComRespDto.getDataId()) : "");//SimpleFieldAssign//sourceId:2034818_1
                addEviRecordComReqDto.setChainAddress(implementEviFilesChainComRespDto.getChainAddress());//SimpleFieldAssign//sourceId:2034976_1
                addEviRecordComReqDto.setHashCal(implementEviFilesChainComRespDto.getHashCal());//SimpleFieldAssign//sourceId:2034977_1
            }
            if (queryResourceFileDetailComRespDto != null) {
                addEviRecordComReqDto.setHashCode(queryResourceFileDetailComRespDto.getHashCode());//SimpleFieldAssign//sourceId:2034800_1
                addEviRecordComReqDto.setResourceFileName(queryResourceFileDetailComRespDto.getResourceFileName());//SimpleFieldAssign//sourceId:2034801_1
                addEviRecordComReqDto.setResourceFileNumber(queryResourceFileDetailComRespDto.getResourceFileNumber());//SimpleFieldAssign//sourceId:2034802_1
                addEviRecordComReqDto.setCopyRightType(queryResourceFileDetailComRespDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2034803_1
                addEviRecordComReqDto.setCopyRightHolderId(queryResourceFileDetailComRespDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2034804_1
                addEviRecordComReqDto.setCopyRightOriginalRoleMemberId(queryResourceFileDetailComRespDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2034806_1
            }
            if (analysisResourceFileObjectNameComRespDto != null) {
                addEviRecordComReqDto.setCopyRightHolderName(analysisResourceFileObjectNameComRespDto.getCopyRightHolderName());//SimpleFieldAssign//sourceId:2034805_1
            }
            if (querySpaceDetailComRespDto != null) {
                addEviRecordComReqDto.setAbbreviation(querySpaceDetailComRespDto.getAbbreviation());//SimpleFieldAssign//sourceId:2034807_1
            }

            /*D8新增存证记录(公共)[10318]   */
            Assert.isNull(addEviRecordComReqDto.getBlockUniCode(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-区块链存证唯一标识（存证编号）不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getChainEviId(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-区块链存证ID不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getHashCode(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-文件存证唯一标识不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getResourceFileName(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-冗余资源文件名称不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getResourceFileNumber(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-资源文件编号不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getCopyRightType(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-版权归属类型不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getCopyRightHolderId(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-版权归属对象ID不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getCopyRightHolderName(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-版权归属对象名称不能为空", false);
            Assert.isNull(addEviRecordComReqDto.getAbbreviation(), "D8执行资源文件上区块链(公共)-D8新增存证记录(公共)-冗余空间简称不能为空", false);
            addEviRecordComRespDto = addEviRecordCom(addEviRecordComReqDto)/*vcase invoke 同服务,同domain*/;


        }

//步骤7: D8修改资源文件(公共) - updateResourceFileCom
        UpdateResourceFileComRespDto updateResourceFileComRespDto = null;
        if (addEviRecordComRespDto != null) {
            UpdateResourceFileComReqDto updateResourceFileComReqDto = new UpdateResourceFileComReqDto();
            updateResourceFileComReqDto.setIsEvi("TRUE");//sourceId:2034843_1
            if (reqDto != null) {
                updateResourceFileComReqDto.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2034845_1
            }
            if (addEviRecordComRespDto != null) {
                updateResourceFileComReqDto.setEviRecordId(addEviRecordComRespDto.getEviRecordId());//SimpleFieldAssign//sourceId:2034842_1
            }

            /*D8修改资源文件(公共)[10317]   */
            Assert.isNull(updateResourceFileComReqDto.getResourceFileId(), "D8执行资源文件上区块链(公共)-D8修改资源文件(公共)-资源文件ID不能为空", false);
            Assert.isNull(updateResourceFileComReqDto.getEviRecordId(), "D8执行资源文件上区块链(公共)-D8修改资源文件(公共)-存证记录ID不能为空", false);
            Assert.isNull(updateResourceFileComReqDto.getIsEvi(), "D8执行资源文件上区块链(公共)-D8修改资源文件(公共)-是否有存证不能为空", false);
            updateResourceFileComRespDto = updateResourceFileCom(updateResourceFileComReqDto)/*vcase invoke 同服务,同domain*/;


        }

        ImplementEviFilesChainsComRespDto retData = new ImplementEviFilesChainsComRespDto();
        if (implementEviFilesChainComRespDto_1 != null) {
            retData.setDataId(implementEviFilesChainComRespDto_1.getDataId());//SimpleFieldAssign//sourceId:2034792_1
            retData.setDataHash(implementEviFilesChainComRespDto_1.getDataHash());//SimpleFieldAssign//sourceId:2034793_1
        }


        return retData;
    }

    /**
     * D8分析资源文件归属对象名称(公共)[10451]
     * gen by moon at 12/16/2024, 7:38:33 PM
     */
    @Trace(operationName = "D8分析资源文件归属对象名称(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AnalysisResourceFileObjectNameComRespDto analysisResourceFileObjectNameCom(AnalysisResourceFileObjectNameComReqDto reqDto) {


        ImplementUnstructuredDataReceiveFieldRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getResourceCopyRightType() != null && reqDto.getResourceCopyRightType().equals("OMS_ORG_INDUCTION_RECORD"))) {
            //if(D8分析资源文件归属对象名称(公共).资源文件版权归属类型 等于 就职记录表)  73727

            QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
            QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto = new QueryInductionRecordInfoDetailComReqDto();
            queryInductionRecordInfoDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2036747_1_73729
            if (reqDto != null) {
                queryInductionRecordInfoDetailComReqDto.setInductionRecordId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2036739_1_73729
            }

            /*D1-3查询个人就职记录信息详情（公共）[715]   */
            Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(), "D8分析资源文件归属对象名称(公共)-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空", false);
            Assert.isNull(queryInductionRecordInfoDetailComReqDto.getSpaceId(), "D8分析资源文件归属对象名称(公共)-D1-3查询个人就职记录信息详情（公共）-创建于空间ID不能为空", false);
            queryInductionRecordInfoDetailComRespDto = inductionRecordService.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//ModelCode: receptionService
            ImplementUnstructuredDataReceiveFieldRespDto receptionServiceRes = null;
            if (queryInductionRecordInfoDetailComRespDto != null) {
                ImplementUnstructuredDataReceiveFieldReqDto receptionServiceReq = new ImplementUnstructuredDataReceiveFieldReqDto();
                if (queryInductionRecordInfoDetailComRespDto != null) {
                    receptionServiceReq.setCopyRightHolderName(queryInductionRecordInfoDetailComRespDto.getIdCardName());//SimpleFieldAssign//sourceId:2036795_1_73731
                }

                /*M8接收出参：版权归属对象名称[10347]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getCopyRightHolderName(), "D8分析资源文件归属对象名称(公共)-M8接收出参：版权归属对象名称-版权归属对象名称不能为空", false);
                receptionServiceRes = nbResourceFile.implementUnstructuredDataReceiveField(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        } else if ((reqDto != null && reqDto.getResourceCopyRightType() != null && reqDto.getResourceCopyRightType().equals("OMS_ORG_DEPT"))) {
            //elseif(D8分析资源文件归属对象名称(公共).资源文件版权归属类型 等于 部门表)  73728

            QueryDeptDetailComBorderRespDto queryDeptDetailComBorderRespDto = null;
            QueryDeptDetailComBorderReqDto queryDeptDetailComBorderReqDto = new QueryDeptDetailComBorderReqDto();
            queryDeptDetailComBorderReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:2036765_1_73730
            if (reqDto != null) {
                queryDeptDetailComBorderReqDto.setDeptId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2036751_1_73730
            }

            /*D1-3查询部门详情(公共)(边界)[2691]   */
            Assert.isNull(queryDeptDetailComBorderReqDto.getDeptId(), "D8分析资源文件归属对象名称(公共)-D1-3查询部门详情(公共)(边界)-部门ID不能为空", false);
            Assert.isNull(queryDeptDetailComBorderReqDto.getSubjectLifeCycle(), "D8分析资源文件归属对象名称(公共)-D1-3查询部门详情(公共)(边界)-主体生命周期不能为空", false);
            queryDeptDetailComBorderRespDto = orgService.queryDeptDetailComBorder(queryDeptDetailComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//ModelCode: receptionService
            ImplementUnstructuredDataReceiveFieldRespDto receptionServiceRes_2 = null;
            if (queryDeptDetailComBorderRespDto != null) {
                ImplementUnstructuredDataReceiveFieldReqDto receptionServiceReq_1 = new ImplementUnstructuredDataReceiveFieldReqDto();
                if (queryDeptDetailComBorderRespDto != null) {
                    receptionServiceReq_1.setCopyRightHolderName(queryDeptDetailComBorderRespDto.getDeptShortName());//SimpleFieldAssign//sourceId:2036795_1_73732
                }

                /*M8接收出参：版权归属对象名称[10347]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_1.getCopyRightHolderName(), "D8分析资源文件归属对象名称(公共)-M8接收出参：版权归属对象名称-版权归属对象名称不能为空", false);
                receptionServiceRes_2 = nbResourceFile.implementUnstructuredDataReceiveField(receptionServiceReq_1);


                receptionServiceRes_1 = receptionServiceRes_2;
            }
        }
        AnalysisResourceFileObjectNameComRespDto retData = new AnalysisResourceFileObjectNameComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setCopyRightHolderName(receptionServiceRes_1.getCopyRightHolderName());//SimpleFieldAssign//sourceId:2037017_1
        }


        return retData;
    }

    /**
     * D8执行存证操作权限判断(公共)[10452]
     * gen by moon at 12/12/2024, 4:57:19 PM
     */
    @Trace(operationName = "D8执行存证操作权限判断(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementEviRecordOperatePrivacyComRespDto implementEviRecordOperatePrivacyCom(ImplementEviRecordOperatePrivacyComReqDto reqDto) {


        if ((reqDto != null && reqDto.getResourceCopyRightType() != null && reqDto.getResourceCopyRightType().equals("OMS_ORG_INDUCTION_RECORD"))) {
            //if(D8执行存证操作权限判断(公共).资源文件版权归属类型 等于 就职记录表)  73733

            QueryResourceFileDetailComRespDto queryResourceFileDetailComRespDto = null;
            QueryResourceFileDetailComReqDto queryResourceFileDetailComReqDto = new QueryResourceFileDetailComReqDto();
            queryResourceFileDetailComReqDto.setCopyRightOriginalRoleMemberId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOriginalRoleMemberId());//CURRENT_ORIGINAL_ROLE_MEMBERID//sourceId:2036848_1_73734
            if (reqDto != null) {
                queryResourceFileDetailComReqDto.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2036846_1_73734
            }

            /*D8查询当前文件是否当前身份人员的[10321]   */
            Assert.isNull(queryResourceFileDetailComReqDto.getResourceFileId(), "D8执行存证操作权限判断(公共)-D8查询当前文件是否当前身份人员的-资源文件ID不能为空", false);
            Assert.isNull(queryResourceFileDetailComReqDto.getCopyRightOriginalRoleMemberId(), "D8执行存证操作权限判断(公共)-D8查询当前文件是否当前身份人员的-版权归属身份人员ID不能为空", false);
            queryResourceFileDetailComRespDto = queryResourceFileDetailCom(queryResourceFileDetailComReqDto)/*vcase invoke 同服务,同domain*/;


            if ((queryResourceFileDetailComRespDto != null && queryResourceFileDetailComRespDto.getResourceFileId() == null)) {
                //if(D8查询当前文件是否当前身份人员的.资源文件ID 值等于空 )  73738

//异常结束 73741
                throw new BizException("3R300100524", "对不起，没有权限操作，请联系文件管理员~", false);
            } else {
                //else  73742

//processBranchName:正常结束 ,processBranchId:73744

            }
        } else if ((reqDto != null && reqDto.getResourceCopyRightType() != null && reqDto.getResourceCopyRightType().equals("OMS_ORG_DEPT"))) {
            //elseif(D8执行存证操作权限判断(公共).资源文件版权归属类型 等于 部门表)  73735

            QueryResourceFileDetailComRespDto queryResourceFileDetailComRespDto_2 = null;
            QueryResourceFileDetailComReqDto queryResourceFileDetailComReqDto_1 = new QueryResourceFileDetailComReqDto();
            if (reqDto != null) {
                queryResourceFileDetailComReqDto_1.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2036867_1_73737
                queryResourceFileDetailComReqDto_1.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2036868_1_73737
            }

            /*D8查询当前文件是否当前部门的[10321]   */
            Assert.isNull(queryResourceFileDetailComReqDto_1.getResourceFileId(), "D8执行存证操作权限判断(公共)-D8查询当前文件是否当前部门的-资源文件ID不能为空", false);
            Assert.isNull(queryResourceFileDetailComReqDto_1.getResourceCopyRightHolderId(), "D8执行存证操作权限判断(公共)-D8查询当前文件是否当前部门的-资源文件版权归属对象ID不能为空", false);
            queryResourceFileDetailComRespDto_2 = queryResourceFileDetailCom(queryResourceFileDetailComReqDto_1)/*vcase invoke 同服务,同domain*/;


            if ((queryResourceFileDetailComRespDto_2 != null && queryResourceFileDetailComRespDto_2.getResourceFileId() == null)) {
                //if(D8查询当前文件是否当前部门的.资源文件ID 值等于空 )  73745

//异常结束 73748
                throw new BizException("3R300100524", "对不起，没有权限操作，请联系文件管理员~", false);
            } else {
                //else  73749

//processBranchName:正常结束 ,processBranchId:73751

            }
        }
        ImplementEviRecordOperatePrivacyComRespDto retData = new ImplementEviRecordOperatePrivacyComRespDto();


        return retData;
    }

    /**
     * D8生成智能简介(公共)[10453]
     * gen by moon at 12/17/2024, 11:46:36 PM
     */
    @Trace(operationName = "D8生成智能简介(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public GenerateSmartIntroComRespDto generateSmartIntroCom(GenerateSmartIntroComReqDto reqDto) {


        ImplementFileQaComRespDto implementFileQaComRespDto_1 = null;
//virtualUsage D2查询空间是否开启智能简介  73800
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2037075_1_73800
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2037076_1_73800
        queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("IS_OPEN_SMART_INTRO");//CUSTOM_CONVENTION//sourceId:2037077_1_73800
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2037078_1_73800

        /*D2查询空间是否开启智能简介[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D8生成智能简介(公共)-D2查询空间是否开启智能简介-开通对象ID不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(), "D8生成智能简介(公共)-D2查询空间是否开启智能简介-开通对象类型编码不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D8生成智能简介(公共)-D2查询空间是否开启智能简介-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D8生成智能简介(公共)-D2查询空间是否开启智能简介-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        if ((queryConfItemMatchAnswerDetailComRespDto != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue() != null && queryConfItemMatchAnswerDetailComRespDto.getEndValue().equals("TRUE"))) {
            //if(D2查询空间是否开启智能简介.答案值 等于 是)  73801

            ImplementFileQaComRespDto implementFileQaComRespDto = null;
            ImplementFileQaComReqDto implementFileQaComReqDto = new ImplementFileQaComReqDto();
            if (reqDto != null) {
                implementFileQaComReqDto.setResourceFileId(reqDto.getResourceFileId());//SimpleFieldAssign//sourceId:2037049_1_73802
                implementFileQaComReqDto.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2037051_1_73802
            }

            /*D8执行单个文件长文本问答(公共)[10429]   */
            Assert.isNull(implementFileQaComReqDto.getResourceFileId(), "D8生成智能简介(公共)-D8执行单个文件长文本问答(公共)-资源文件ID不能为空", false);
            Assert.isNull(implementFileQaComReqDto.getResourceFileRelaPath(), "D8生成智能简介(公共)-D8执行单个文件长文本问答(公共)-资源文件相对路径不能为空", false);
            implementFileQaComRespDto = intelligentCommunicationService.implementFileQaCom(implementFileQaComReqDto)/*vcase invoke isSameApp*/;


            implementFileQaComRespDto_1 = implementFileQaComRespDto;
        }
        GenerateSmartIntroComRespDto retData = new GenerateSmartIntroComRespDto();
        if (implementFileQaComRespDto_1 != null) {
            retData.setContent(implementFileQaComRespDto_1.getContent());//SimpleFieldAssign//sourceId:2037080_1
        }


        return retData;
    }

    /**
     * D8执行新增资源文件(公共)[10454]
     * gen by moon at 6/3/2025, 1:27:11 PM
     */
    @Trace(operationName = "D8执行新增资源文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementResourceFileComRespDto implementResourceFileCom(ImplementResourceFileComReqDto reqDto) {


        AddResourceFileComRespDto addResourceFileComRespDto_1 = null;
        //步骤0: M8执行非结构化数据接收入参字段入参 - implementUnstructuredDataReceiveField
        //ModelCode: receptionService
        ImplementUnstructuredDataReceiveFieldRespDto receptionServiceRes = null;
        ImplementUnstructuredDataReceiveFieldReqDto receptionServiceReq = new ImplementUnstructuredDataReceiveFieldReqDto();
        if (reqDto != null) {
            receptionServiceReq.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2037194_1
            receptionServiceReq.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2037193_1
        }

        /*M8接收入参字段[10347]  用于特殊方法接收上游入参。 */

        receptionServiceRes = nbResourceFile.implementUnstructuredDataReceiveField(receptionServiceReq);


//步骤1: D2-3查配置项匹配答案详情(公共)（跨服务） - queryConfItemMatchAnswerDetailCom
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:2037144_1
        queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:2037145_1
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:2037147_1
        if (reqDto != null) {
            queryConfItemMatchAnswerDetailComReqDto.setConfItemCode(reqDto.getResourceFileExtension());//SimpleFieldAssign//sourceId:2037146_1
        }

        /*D2查询文档类型配置[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(), "D8执行新增资源文件(公共)-D2查询文档类型配置-开通对象ID不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(), "D8执行新增资源文件(公共)-D2查询文档类型配置-开通对象类型编码不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D8执行新增资源文件(公共)-D2查询文档类型配置-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D8执行新增资源文件(公共)-D2查询文档类型配置-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤2: D8新增资源文件(公共) - addResourceFileCom
        AddResourceFileComRespDto addResourceFileComRespDto = null;
        if (queryConfItemMatchAnswerDetailComRespDto != null) {
            AddResourceFileComReqDto addResourceFileComReqDto = new AddResourceFileComReqDto();
            if (reqDto != null) {
                addResourceFileComReqDto.setHashCode(reqDto.getHashCode());//SimpleFieldAssign//sourceId:2037119_1
                addResourceFileComReqDto.setResourceFileName(reqDto.getResourceFileName());//SimpleFieldAssign//sourceId:2037106_1
                addResourceFileComReqDto.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2037108_1
                addResourceFileComReqDto.setResourceFileSize(reqDto.getResourceFileSize());//SimpleFieldAssign//sourceId:2037109_1
                addResourceFileComReqDto.setResourceFileExtension(reqDto.getResourceFileExtension());//SimpleFieldAssign//sourceId:2037110_1
                addResourceFileComReqDto.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:2037118_1
                addResourceFileComReqDto.setResourceCopyRightType(reqDto.getResourceCopyRightType());//SimpleFieldAssign//sourceId:2037113_1
                addResourceFileComReqDto.setResourceCopyRightHolderId(reqDto.getResourceCopyRightHolderId());//SimpleFieldAssign//sourceId:2037114_1
                addResourceFileComReqDto.setCopyRightOriginalRoleMemberId(reqDto.getCopyRightOriginalRoleMemberId());//SimpleFieldAssign//sourceId:2037115_1
                addResourceFileComReqDto.setIsEvi(reqDto.getIsEvi());//SimpleFieldAssign//sourceId:2037116_1
            }
            if (queryConfItemMatchAnswerDetailComRespDto != null) {
                addResourceFileComReqDto.setResourceFileType(queryConfItemMatchAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:2037111_1
                addResourceFileComReqDto.setResourceFileDetailType(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:2037112_1
            }

            /*D8新增资源文件(公共)[10316]   */
            Assert.isNull(addResourceFileComReqDto.getResourceFileName(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件名称不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceFileRelaPath(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件相对路径不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceFileSize(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件大小不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceFileExtension(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件后缀不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceFileType(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件类型不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceFileDetailType(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件明细类型不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getIsUserUpload(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-是否来自个人网盘文件不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceCopyRightType(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件版权归属类型不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getResourceCopyRightHolderId(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-资源文件版权归属对象ID不能为空", false);
            Assert.isNull(addResourceFileComReqDto.getIsEvi(), "D8执行新增资源文件(公共)-D8新增资源文件(公共)-是否有存证不能为空", false);
            addResourceFileComRespDto = addResourceFileCom(addResourceFileComReqDto)/*vcase invoke 同服务,同domain*/;


            addResourceFileComRespDto_1 = addResourceFileComRespDto;
        }

//步骤3: D8生成智能简介(公共) - generateSmartIntroCom
        GenerateSmartIntroComRespDto generateSmartIntroComRespDto = null;
        if (addResourceFileComRespDto != null) {
            GenerateSmartIntroComReqDto generateSmartIntroComReqDto = new GenerateSmartIntroComReqDto();
            if (addResourceFileComRespDto != null) {
                generateSmartIntroComReqDto.setResourceFileId(addResourceFileComRespDto.getResourceFileId());//SimpleFieldAssign//sourceId:2037120_1
            }
            if (reqDto != null) {
                generateSmartIntroComReqDto.setResourceFileRelaPath(reqDto.getResourceFileRelaPath());//SimpleFieldAssign//sourceId:2037121_1
            }

            /*D8生成智能简介(公共)[10453]   */
            Assert.isNull(generateSmartIntroComReqDto.getResourceFileId(), "D8执行新增资源文件(公共)-D8生成智能简介(公共)-资源文件ID不能为空", false);
            Assert.isNull(generateSmartIntroComReqDto.getResourceFileRelaPath(), "D8执行新增资源文件(公共)-D8生成智能简介(公共)-资源文件相对路径不能为空", false);
            generateSmartIntroComRespDto = generateSmartIntroCom(generateSmartIntroComReqDto)/*vcase invoke 同服务,同domain*/;


        }

        ImplementResourceFileComRespDto retData = new ImplementResourceFileComRespDto();
        if (addResourceFileComRespDto_1 != null) {
            retData.setResourceFileId(addResourceFileComRespDto_1.getResourceFileId());//SimpleFieldAssign//sourceId:2047940_1
        }


        return retData;
    }
    //
}
